#! /usr/bin/python3
# -*- coding: UTF-8 -*-

if __name__ == "__main__":
	raise Exception("不支持从这里调用")

__version__ = "1.0"
__all__ = ["MouseChshModuleModel"]

from com.mousechsh.business.lib.model.MouseChshCommonModel import MouseChshCommonModel
from com.mousechsh.common.data.MouseChshField import MouseChshForeignStringField, MouseChshIntegerField, \
	MouseChshJsonBinField, MouseChshStringField


class MouseChshModuleModel(MouseChshCommonModel):
	'''
	模块模型
	'''

	Name = MouseChshStringField('Name')
	App = MouseChshForeignStringField('Id', linked_table='App')
	Display = MouseChshJsonBinField('Display')
	Type = MouseChshForeignStringField('ModuleType')
	Parent = MouseChshForeignStringField('Parent', linked_table='Module')
	Path = MouseChshStringField('Path')
	PgCode = MouseChshStringField('PgCode')
	Permission = MouseChshIntegerField('Permission')

	class Meta:
		SchemaName = 'A_Application'
		TableName = 'T_Module'
